package com.hzsk.lisence.service;

import com.hzsk.lisence.entity.FA_DescriptionInfo;
import com.hzsk.lisence.entity.FA_FuncItemInfo;
import com.hzsk.lisence.entity.FA_VerifyInfo;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;

/**
 * @Description : 调用C++动态库生成授权文件
 * @Date : 2024/8/29
 * @Author : ChenJin
 * @Version : v1.0.0
 **/
public interface EmAuthFileService extends Library {
    
    EmAuthFileService emAuthFileService = Native.load("/home/hzncc/empower/backend/libfagenerate.so",EmAuthFileService.class);
    
//    int FA_EncryptedFuncAuthInfo(FA_DescriptionInfo.ByValue fa_descriptionInfo, FA_VerifyInfo.ByValue fa_verifyInfo, FA_FuncItemInfo.ByValue fa_funcItemInfo, int funcItemCnt,Pointer jwtFile);

    int FA_EncryptedFuncAuthInfo(FA_DescriptionInfo.ByValue fa_descriptionInfo, FA_VerifyInfo.ByValue fa_verifyInfo, FA_FuncItemInfo.ByValue fa_funcItemInfo,Pointer jwtFile);
    
}
